package com.xiaoma.drools;

import org.kie.api.internal.utils.ServiceRegistry;

import static org.drools.core.base.CoreComponentsBuilder.throwExceptionForMissingMvel;

/**
 * @Class: LocationSupport
 * @Description:
 * @author: qiurudong
 * @Date: 2021/1/11 0011
 */
public interface LocationSupport {

    class Holder {
        private static final LocationSupport fieldFactory = getFactory();

        private static LocationSupport getFactory() {
            LocationSupport instance = ServiceRegistry.getService( LocationSupport.class );
            return instance != null ? instance : throwExceptionForMissingMvel();
        }
    }

    static LocationSupport get() {
        return LocationSupport.Holder.fieldFactory;
    }

    public String getCity();
}
